#def greet(name):
#	def wrapper():
#		return "Hello "
#
#	result = wrapper() + name
#	return result
#
#greet_someone = greet
#print greet_someone("cornell")

def greet(name):
	return "Hello " + name

def call_func(func):
	myname = "Cornell"
	return func(myname)

print call_func(greet)

def compose_greet_func(name):
	def func():
		return "Hello there " + name + " !"

	return func()

print compose_greet_func('Cornell')

print


def p_format(wrapper):
	def wrapper(name):
		return "<p>{0}</p>".format(name)
	return wrapper

@p_format
def get_text(name):
	return "Hello name {0}".format(name)


print get_text('Cornell')
